package com.jintian.smart.platform.system.mapper;

import com.jintian.smart.kernel.orm.mapper.IBaseExtMapper;
import com.jintian.smart.base.api.system.entity.DepartmentEntity;
import com.jintian.smart.base.api.system.view.DepartmentVO;
import org.beetl.sql.mapper.annotation.Mapper;
import org.beetl.sql.mapper.annotation.Param;
import org.beetl.sql.mapper.annotation.SqlResource;

import java.util.List;

/**
 * 部门
 */
@Mapper
@SqlResource("system.Department")
public interface DepartmentMapper extends IBaseExtMapper<DepartmentEntity> {
    /**
     * 获取全部部门列表
     */
    List<DepartmentVO> listAll();

    /**
     * 获取查询部门信息，关联负责人姓名 父部分名称
     */
    DepartmentVO selectDepartmentVO(@Param("departmentId") Long departmentId);
}
